﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Kupi.aspx.cs" Inherits="KUpi" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Купи</title>
    <style type="text/css">
        .style1
        {
            width: 50%;
        }
        .style2
        {
            height: 42px;
        }
        .style3
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: justify">
    <asp:Panel ID="pnlGlaven" runat="server">
        <asp:Panel ID="Panel1" runat="server" HorizontalAlign="Center">
        <asp:Panel ID="Panel2" runat="server" style="text-align: center"  BorderStyle="Outset" 
            HorizontalAlign="Center" Height="250">
            <asp:Image ID="Image1" runat="server" ImageAlign="Middle" Height="220" ImageUrl="~/Sliki/shopping-cart11.jpg" />
            <asp:Panel ID="PNaslov" runat="server">
             <asp:Label ID="lblNaslov" runat="server" Font-Bold="True" ForeColor="Red" Font-Size="X-Large"></asp:Label>
            </asp:Panel>
           
        </asp:Panel>
        </asp:Panel>
         <div style="text-align: center; width: 921px; margin-left: 450px;">
        <asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3" 
            DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="1 em" 
            ForeColor="#7C6F57" Orientation="Horizontal" StaticSubMenuIndent="10px" 
                onmenuitemclick="Menu1_MenuItemClick">
            <DynamicHoverStyle BackColor="#7C6F57" ForeColor="White" />
            <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <DynamicMenuStyle BackColor="#F7F6F3" />
            <DynamicSelectedStyle BackColor="#5D7B9D" />
            <Items>
                <asp:MenuItem Text="Дома" Value="Дома" NavigateUrl="~/Doma.aspx"></asp:MenuItem>
                <asp:MenuItem Text="Облека за мажи" Value="Облека за мажи" 
                    NavigateUrl="~/za_mazi.aspx" Selectable="False">
                    <asp:MenuItem Text="Маици" Value="Маици"></asp:MenuItem>
                    <asp:MenuItem Text="Патики" Value="Патики"></asp:MenuItem>
                    <asp:MenuItem Text="Панталони" Value="Панталони"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Облека за жени" Value="Облека за жени" 
                    NavigateUrl="~/za_zeni.aspx" Selectable="False">
                    <asp:MenuItem Text="Фустани" Value="Фустани"></asp:MenuItem>
                    <asp:MenuItem Text="Штикли" Value="Штикли"></asp:MenuItem>
                    <asp:MenuItem Text="Капи" Value="Капи"></asp:MenuItem>
                </asp:MenuItem>
                <asp:MenuItem Text="Инфо" Value="Инфо" NavigateUrl="~/Info.aspx"></asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#7C6F57" ForeColor="White" />
            <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
            <StaticSelectedStyle BackColor="#5D7B9D" />
        </asp:Menu></div>
        </asp:Panel> 
        <asp:Label ID="lblKorisnik" runat="server"></asp:Label>
&nbsp;<asp:Button ID="btnLogiranje" runat="server" onclick="btnLogiranje_Click" 
            Text="Логирај се" Visible="False" />
        &nbsp;<asp:Button ID="btnOdlogiranje" runat="server" Text="Одлогирај се" 
            Visible="False" onclick="btnOdlogiranje_Click" />

    </div>
    <div style="height: 215px; width: 1367px; text-align: center">
        <table class="style1">
            <tr>
                <td>
                    <asp:ListBox ID="lstKupi" runat="server"  Width="210px"></asp:ListBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    <table class="style3">
                        <tr>
                            <td>
                                Вкупна цена:</td>
                            <td>
                                <asp:Label ID="lblCena" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Корисничко име:</td>
                            <td>
                                <asp:Label ID="lblKorisnickoIMe" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Кредитна картичка:</td>
                            <td>
                                <asp:TextBox ID="txtKarticka" runat="server" Width="156px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnOtkazi" runat="server" onclick="btnOtkazi_Click" 
                        Text="Откажи" />
&nbsp;<asp:Button ID="btnPlati" runat="server" Text="Плати" onclick="btnPlati_Click" />
                    <br />
                    <asp:Label ID="lblGreska" runat="server" ForeColor="#CC0000" 
                        style="font-family: 'Courier New', Courier, monospace; font-size: medium; font-weight: 700; text-decoration: underline"></asp:Label>
                    <br />
                </td>
            </tr>
        </table>
        <br />
        <br />
    </div>
                    <br />
    <asp:GridView ID="gvPom" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="broj" DataSourceID="pom" Visible="False">
        <Columns>
            <asp:BoundField DataField="broj" HeaderText="broj" ReadOnly="True" 
                SortExpression="broj" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="cena" HeaderText="cena" SortExpression="cena" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="pom" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [pom]"></asp:SqlDataSource>
    <asp:GridView ID="gvKlienti" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="broj" DataSourceID="Klient" Visible="False">
        <Columns>
            <asp:BoundField DataField="broj" HeaderText="broj" ReadOnly="True" 
                SortExpression="broj" />
            <asp:BoundField DataField="ime" HeaderText="ime" SortExpression="ime" />
            <asp:BoundField DataField="prezime" HeaderText="prezime" 
                SortExpression="prezime" />
            <asp:BoundField DataField="karticka" HeaderText="karticka" 
                SortExpression="karticka" />
            <asp:BoundField DataField="mail" HeaderText="mail" SortExpression="mail" />
            <asp:BoundField DataField="lozinka" HeaderText="lozinka" 
                SortExpression="lozinka" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="Klient" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Klient]"></asp:SqlDataSource>
    </form>
</body>
</html>
